package base.dao;

import base.bean.CheckinEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by uas on 2018/3/18.
 */
@Repository
public interface ICheckinDao extends JpaRepository<CheckinEntity,Integer> {
    @Query(value = "select * from checkin where id Not in (Select liveid from checkout)", nativeQuery = true)
    List<CheckinEntity> findExceptCheckOut();
}
